package io.renren.modules.app.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import io.renren.modules.app.dao.JobMapper;
import io.renren.modules.app.entity.JobInfoPO;
import io.renren.modules.app.service.JobService;


@Service
public class JobServiceImpl implements JobService {

	@Autowired
	private JobMapper jobMapper;
	
	@Override
	public List<JobInfoPO> queryAllJobs() {
		return jobMapper.queryAllJobs();
	}

	@Override
	public JobInfoPO queryByJobID(String id) {
		return jobMapper.queryByJobID(id);
	}

	@Override
	public int removeJob(String id) {
		return jobMapper.removeJob(id);
	}

	@Override
	public int activeJob(String id) {
		return jobMapper.activeJob(id);
	}

}
